package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.TransportService;
import com.jeesite.modules.dataScreen.web.vo.Result;
import com.jeesite.modules.dataScreen.service.RailWaterContainerVo;
import com.jeesite.modules.dataScreen.web.vo.roadfreight.RoadFreightVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author machenzhi
 * @date 2024/06/28 17:22
 */
@RestController
@Api(tags = "道运板块")
@RequestMapping("/transport")
public class TransportApi {

    @Autowired
    private TransportService transportService;


    @ApiOperation("公路货运数据")
    @GetMapping("/road")
    public Result<RoadFreightVo> road() {
        return Result.OK(transportService.road());
    }

    @ApiOperation("铁水联运数据")
    @GetMapping("/water")
    public Result<RailWaterContainerVo> water() {
        return Result.OK(transportService.water());
    }

}
